File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -30,6 +30,7 @@ <h1 class="sumo-page-heading">{{ title }}</h1>
30
30
< button class ="sumo-button primary-button button-lg " type ="submit "> {{ _('Update') }}</ button >
31
31
</ div >
32
32
</ form >
33
+ {{ watch_list|paginator }}
33
34
{% else %}
34
35
< p > {{ _('You are not currently watching anything.') }}</ p >
35
36
{% endif %}
Original file line number Diff line number Diff line change @@ -290,7 +290,7 @@ def edit_contribution_area(request):
290
290
@require_http_methods (["GET" , "POST" ])
291
291
def edit_watch_list (request ):
292
292
"""Edit watch list"""
293
- watches = Watch .objects .filter (user = request .user ).order_by ("content_type" )
293
+ watches = Watch .objects .filter (user = request .user ).order_by ("content_type" , "id" )
294
294
295
295
watch_list = []
296
296
for item in watches :
@@ -302,6 +302,8 @@ def edit_watch_list(request):
302
302
else :
303
303
watch_list .append (item )
304
304
305
+ watch_list = paginate (request , watch_list )
306
+
305
307
if request .method == "POST" :
306
308
for item in watch_list :
307
309
item .is_active = "watch_%s" % item .id in request .POST
You can’t perform that action at this time.
0 commit comments